package com.lhy.admin.mapper;

import com.lhy.admin.model.Permission;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface PermissionMapper extends Mapper<Permission> {

    List<Permission> listPermissionsByUserName(String name);

    List<Permission> listPermissionsByRoleName(String name);
}